<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>关联产品</h4>
        <div class="box-body no-padding" style="margin-left: 50px">
            组合规则：{{ $ps->mix_rule }}
        </div>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>SKU</th>
                    <th style="width: 35%">产品名称</th>
                    <th>产品状态</th>
                    <th>组合数量</th>
                </tr>
                </thead>
                <tbody>
                @php
                    $flag = FALSE;
                @endphp
                @foreach($relatedSkuInfo as $item)
                    @if(!empty($item))
                        @php
                            $flag = true;
                        @endphp
                        <tr>
                            <td><a href="/xqc/products/sku/{{ $item['psku_id'] }}" target="_blank">{{ $item['psku_code'] }}</a ></td>
                            <td>{{ $item['psku_cn'] }}</td>
                            <td>{{ $item['psku_status'] }}</td>
                            <td>{{ $item['num'] }}</td>
                        </tr>
                    @endif
                @endforeach
                @if(!$flag)
                    <tr><td colspan="4">未找到关联信息</td></tr>
                @endif
                </tbody>
            </table>
        </div>
    </div>
</div>
